import dayjs from 'dayjs';
// 格式化日期
const formatDate = (date) => {
  if (!date) {
    return '';
  }
  return dayjs(date).format('YYYY-MM-DD HH:mm:ss');
};
export const baseColumns = [
  {
    title: "角色名称",
    dataIndex: "name",
    minWidth: 150,
  },
  {
    title: "创建时间",
    dataIndex: "createdAt",
    minWidth: 200,
    customRender: ({ text }) => formatDate(text),
  },

]
